package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 饲料使用登记对象 tb_feed_records
 * 
 * @author codeman
 * @date 2024-05-06
 */
public class TbFeedRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long consumptionId;

    /** 肉鸡 */

    private Long chickenId;
    @Excel(name = "肉鸡")
    private String chickenNo;

    /** 饲料 */

    private Long feedId;
    @Excel(name = "饲料")
    private String feedName;
    /** 消耗日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消耗日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionDate;

    /** 消耗数量 */
    @Excel(name = "消耗数量")
    private BigDecimal consumptionAmount;

    /** 饲养员 */

    private Long userId;
    @Excel(name = "饲养员")
    private String userName;

    /** $column.columnComment */
    private String delFlag;

    public String getChickenNo()
    {
        return chickenNo;
    }

    public void setChickenNo(String chickenNo)
    {
        this.chickenNo = chickenNo;
    }

    public String getFeedName()
    {
        return feedName;
    }

    public void setFeedName(String feedName)
    {
        this.feedName = feedName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public void setConsumptionId(Long consumptionId)
    {
        this.consumptionId = consumptionId;
    }

    public Long getConsumptionId() 
    {
        return consumptionId;
    }
    public void setChickenId(Long chickenId) 
    {
        this.chickenId = chickenId;
    }

    public Long getChickenId() 
    {
        return chickenId;
    }
    public void setFeedId(Long feedId) 
    {
        this.feedId = feedId;
    }

    public Long getFeedId() 
    {
        return feedId;
    }
    public void setConsumptionDate(Date consumptionDate) 
    {
        this.consumptionDate = consumptionDate;
    }

    public Date getConsumptionDate() 
    {
        return consumptionDate;
    }
    public void setConsumptionAmount(BigDecimal consumptionAmount) 
    {
        this.consumptionAmount = consumptionAmount;
    }

    public BigDecimal getConsumptionAmount() 
    {
        return consumptionAmount;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumptionId", getConsumptionId())
            .append("chickenId", getChickenId())
            .append("feedId", getFeedId())
            .append("consumptionDate", getConsumptionDate())
            .append("consumptionAmount", getConsumptionAmount())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
